.img-responsive {
    > img {
        max-width: 100%;
        height: auto;
    }
}

.modal-dialog--with-tabs {
    @include media-breakpoint-up(md) {
        max-width: 650px;
    }

    .modal-content {
        box-shadow: none;
        background: 0 none;
        border: 0 none;
    }

    .modal-header {
        background: rgba(255, 255, 255, 0.8);
        border: 0 none;
        padding-bottom: 0;
    }
}

.modal-body {
    .form-group {
        margin-bottom: 5px;
    }
}

.modal-tabs {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 $border-radius-base $border-radius-base;
    padding: $modal-inner-padding;
}

.modal-tab {
    padding: 0;
}

.modal-sidebar a {
    color: $gray-500;
    text-decoration: none;
}

.modal-sidebar__options,
.modal-sidebar__close {
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    width: 60px;

    text-align: center;
    border-radius: $border-radius-base;
    margin-bottom: $modal-dialog-margin;

    a {
        display: block;
        padding: 7px;

        &.active,
        &:hover {
            background-color: $white;
        }

        &.active {
            color: $primary-color;
        }

        + a {
            border-top: 1px solid $white;
        }
    }
}

.modal-sidebar__close {
    height: 47px;
    padding: 0;
    a > span {
        font-size: 2rem;
        line-height: 1;
        display: block;
    }
}

.modal-tab-option {
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
}

.modal-tab-option__text {
    font-weight: bold;
    font-size: 9px;
    text-align: center;
}

.modal-tab-option__image {
    display: inline-block;
    height: 31px;
    width: 34px;
    background-size: 102px 62px;
    background-image: url('../img/providers.png');
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: top;

    &--metamask {
        background-position-x: left;
    }

    .modal-tab-option.active > &,
    .modal-tab-option:hover > & {
        background-position-y: bottom;
    }
}

.modal-content .modal-body--form {
    padding: 0;
}

.form-horizontal--border {
    background: $white;
    border-radius: $border-radius-base;
    overflow: hidden;

    + .form-horizontal--border {
        margin-top: 0.625rem;
    }

    label {
        font-weight: normal;
    }

    .form-group {
        margin: 0;

        + .form-group {
            border-top: 1px solid $gray-100;
        }

        .form-control-static,
        .control-label {
            padding: 0.9375rem 1.25rem;
            line-height: 0.9375rem;
        }

        .form-control-static--qr {
            .img-responsive {
                width: 9.375rem;
                display: inline-block;
            }
        }

        .control-label {
            text-align: left;
        }

        .control-label--image {
            line-height: 1.875rem;
            margin: 0;
        }

        .form-group__in-between {
            font-size: 0.625rem;
            display: inline-block;
            margin: 0 0.3125rem;
        }

        .form-control-static {
            text-align: right;

            label {
                margin: 0;
            }
        }

        .form-control--fnd {
            padding: 0;

            .form-control {
                text-align: right;
                border-radius: 0;
                border: 0 none;
                box-shadow: none;
                background-color: transparent;
                padding-right: .5rem;
                height: 2.8125rem;
                line-height: 2.8125rem;
            }
        }

        .control-label {
            border-right: 1px solid $gray-200;
        }
        .control-label + .form-control-static {
            margin-left: -1px;
            border-left: 1px solid $gray-200;
        }
    }
}


.form-heading {
    position: relative;
    line-height: 2.5rem;
    padding: 0.062rem 0.9375rem;
    color: $primary;
    border-bottom: 1px solid $gray-100;
}

.form-heading__number,
.form-heading__text {
    line-height: 2.5rem;
    display: inline-block;
}

.form-heading__info {
    float: right;
    display: table;
}

.form-heading__info-text {
    color: $gray-800;
    display: table-cell;
    padding-right: 0.625rem;
    vertical-align: middle;
    font-size: 0.625rem;
    font-weight: bold;
    width: 6.25rem;
    line-height: 0.625rem;
    text-align: right;
}

.form-heading__logo {
    display: table-cell;
    height: 2.5rem;
    width: 2.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.form-heading__logo--metamask {
    background-image: url('../img/metamask.png');
}

.form-heading__number {
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 5px;
    vertical-align: bottom;
}